<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';
import { useAuthStore } from '@/state/modules/user';
const authStore = useAuthStore();
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime'; // ES 2015
import updateLocale from 'dayjs/plugin/updateLocale'; // ES 2015
dayjs.extend(relativeTime);
dayjs.extend(updateLocale)
import 'dayjs/locale/zh-cn';
dayjs.locale('zh-cn');

onLaunch(() => {
  // console.log('App Launch');
  // fixme
  // authStore.login()
});
onShow(() => {
  // console.log('App Show');
});
onHide(() => {
  // console.log('App Hide');
});
</script>
<style lang="less">
@import "style/style";
</style>
<style lang="scss">
@import url('./style/index.css');
@import 'uview-pro/index.scss';

image {
  //background: rgba(255, 0, 0, 0.26);
}
.page {
  padding-bottom: 0;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  color: rgba(100, 27, 0, 0);
}
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
  border-radius: 10px;
  background-color: rgba(100, 27, 0, 0);
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: rgba(206, 169, 155, 0);
}

:root,
page {
  --wot-color-theme: #f25a27;
  --wot-color-warning: yellow;
}

.contacButton {
  padding: 0;
  background-color: #fff;
  line-height: 25rpx;
  border: none!important;
}

.contacButton::after {
  border: 0;
}
</style>
